<?php
class ResearchWidget extends Widget{

	public function render($data){
		$researchs = M()->query("SELECT i.* ,id.* FROM cms_program i JOIN cms_program_description id ON i.inner_id = id.inner_id 
							 WHERE i.status = 1 and id.language_id = '".L('lan_id')."'
							 ORDER BY i.sort_order desc,i.date desc");
		$data['researchs_list'] = $researchs;
		return $this->renderFile('',$data);
	}
}

?>
